<?php

use yii\helpers\Url;

/* @var $this yii\web\View */
/* @var $keywords string */
/* @var $model \common\models\Sign */
$this->title = 'G力';
?>
<section class="page-section" table>

    <!-- header -->
    <header class="pb-header">
        <div class="clearfix">
            <h2 class="pb-logo"></h2>
            <div class="pb-join"></div>
        </div>
    </header>

    <!-- aside -->
    <aside class="pb-aside"></aside>

    <!-- table -->
    <main class="pb-table">
        <div class="pb-table-search">
            <form action="/index.php?r=site/search" method="post">
                <input type="text" name="keywords" value="<?= $keywords ?>" placeholder="请输入编号">
                <input type="hidden" name="_csrf-frontend" value="<?= Yii::$app->request->csrfToken ?>">
                <input type="submit" value="搜索">
            </form>
        </div>

        <table>
            <thead>
            <tr>
                <th>编号</th>
                <th>姓名</th>
                <th>电话</th>
            </tr>
            </thead>
            <tbody>
            <?php
            if ($model) {
                ?>
                <tr>
                    <td><?= $model->number ?></td>
                    <td><?= $model->name ?></td>
                    <td><?= $model->mobile ?></td>
                </tr>
                <?php
            }
            ?>
            </tbody>
        </table>
    </main>

</section>